package com.ypf.rpc.message;

import lombok.Getter;
import lombok.ToString;

@Getter
@ToString(callSuper = true)
public class RpcRegisterRequestMessage extends Message{

    private String[] serverNames;

    private String serverHost;

    private Integer serverPort;

    public RpcRegisterRequestMessage(String[] serverNames,String serverHost,Integer serverPort){
        this.serverNames = serverNames;
        this.serverHost = serverHost;
        this.serverPort = serverPort;
    }

    @Override
    public int getMessageType() {
        return RpcRegisterRequestMessage;
    }
}
